package cn.com.srit.repository;

import cn.com.srit.entity.ServiceEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface ServiceRepository extends JpaRepository<ServiceEntity, String>, JpaSpecificationExecutor<ServiceEntity> {
    Integer countByCodeAndIdNot(String id, String code);

    Integer countByNameAndIdNot(String id, String name);

    Integer countByPathAndIdNot(String id, String path);

    Integer countByUrlAndIdNot(String id, String url);

    Integer countByRegistryIdAndIdNot(String id, String registryId);
}
